package prog1.serialization;

import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: Roi
 * Date: 09/12/13
 */
public interface ISerializer {
    /**
     * Serializes data to file
     * @param data data to serialize
     * @param filename target filename
     * @throws Exception
     */
    void serialize(Map<String, String> data, String filename) throws Exception;

    /**
     * De-serializes data from file
     * @param data data to de-serialize
     * @param filename source filename
     * @throws Exception
     */
    void deserialize(Map<String, String> data, String filename) throws Exception;
}
